<?php echo $this->fetch('header.html'); ?>
<div id="rightTop">
    <p>网站设置</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=setting&amp;act=base_setting">系统设置</a></li>
        <li><a class="btn1" href="index.php?app=setting&amp;act=base_information">基本信息</a></li>
        <li><a class="btn1" href="index.php?app=setting&amp;act=email_setting">Email</a></li>
        <li><a class="btn1" href="index.php?app=setting&amp;act=captcha_setting">验证码</a></li>
        <li><span>开店设置</span></li>
        <li><a class="btn1" href="index.php?app=setting&amp;act=credit_setting">前台设置</a></li>
        <li><a class="btn1" href="index.php?app=setting&amp;act=subdomain_setting">二级域名</a></li>
        </ul>
</div>

<div class="info">
    <form method="post" enctype="multipart/form-data">
        <table class="infoTable">
            <tr>
                <th class="paddingT15">
                    允许申请开店:</th>
                <td class="paddingT15 wordSpacing5">
                    <input id="store_allow0" type="radio" name="store_allow" <?php if ($this->_var['setting']['store_allow'] == 0): ?>checked<?php endif; ?> value="0" /> <label for="store_allow0"><font color=red>关闭</font></label>
                    <input id="store_allow1" type="radio" name="store_allow" <?php if ($this->_var['setting']['store_allow'] == 1): ?>checked<?php endif; ?> value="1" /> <label for="store_allow1">开启</label>
                </td>
            </tr>
            <tr>
              <th class="paddingT15">开店收取提成:</th>
              <td class="paddingT15 wordSpacing5"><input id="store_ticheng" type="text" name="store_ticheng" value="<?php echo $this->_var['setting']['store_ticheng']; ?>" style="width:50px"/>% 营业额的百分比</td>
            </tr>
            <tr>
              <th class="paddingT15">渠道商的提成:</th>
              <td class="paddingT15 wordSpacing5"><input id="qudaoshang_ticheng" type="text" name="qudaoshang_ticheng" value="<?php echo $this->_var['setting']['qudaoshang_ticheng']; ?>" style="width:50px"/>%  
                毛利的百分比</td>
            </tr>
            <tr>
              <th class="paddingT15">业务员的提成:</th>
              <td class="paddingT15 wordSpacing5"><input id="yewuyuan_ticheng" type="text" name="yewuyuan_ticheng" value="<?php echo $this->_var['setting']['yewuyuan_ticheng']; ?>" style="width:50px"/>%  
                毛利的百分比</td>
            </tr>  
            <tr>
              <th class="paddingT15">区域股的提成:</th>
              <td class="paddingT15 wordSpacing5"><input id="quyugu_ticheng" type="text" name="quyugu_ticheng" value="<?php echo $this->_var['setting']['quyugu_ticheng']; ?>" style="width:50px"/>%  
                毛利的百分比</td>
            </tr> 
            <tr>
              <th class="paddingT15">业务最低结款金额:</th>
              <td class="paddingT15 wordSpacing5"><input id="admin_tikuan" type="text" name="admin_tikuan" value="<?php echo $this->_var['setting']['admin_tikuan']; ?>" style="width:50px"/> 元</td>
            </tr>  
            <tr>
              <th class="paddingT15">会员最低结款金额:</th>
              <td class="paddingT15 wordSpacing5"><input id="user_tikuan" type="text" name="user_tikuan" value="<?php echo $this->_var['setting']['user_tikuan']; ?>" style="width:50px"/> 元</td>
            </tr>                                                           
            <tr>
              <th class="paddingT15">货到付款服务:</th>
              <td class="paddingT15 wordSpacing5">
                 <label><input type="radio" name="store_huodaofukuan" <?php if ($this->_var['setting']['store_huodaofukuan'] == 1): ?>checked<?php endif; ?> value="1" /> 开启</label>
                 <label><input type="radio" name="store_huodaofukuan" <?php if ($this->_var['setting']['store_huodaofukuan'] == 0): ?>checked<?php endif; ?> value="0" /> <font color=red>关闭</font></label>
                 </td>
            </tr> 
            <tr>
              <th class="paddingT15">开启统一支付:</th>
              <td class="paddingT15 wordSpacing5">
                <label><input type="radio" name="store_agreed_pay" <?php if ($this->_var['setting']['store_agreed_pay'] == 1): ?>checked<?php endif; ?> value="1" /> 开启</label>
                <label><input type="radio" name="store_agreed_pay" <?php if ($this->_var['setting']['store_agreed_pay'] == 0): ?>checked<?php endif; ?> value="0" /> <font color=red>关闭</font></label>
                 </td>
            </tr>                       
            <tr>
              <th class="paddingT15">统一支付默认用户ID:</th>
              <td class="paddingT15 wordSpacing5"><input class="infoTableInput" id="store_agreed_pay_id" type="text" name="store_agreed_pay_id" value="<?php echo $this->_var['setting']['store_agreed_pay_id']; ?>" style="width:50px"/></td>
            </tr>
            <tr>
            <th></th>
            <td class="ptb20">
                <input class="formbtn" type="submit" name="Submit" value="提交" />
                <input class="formbtn" type="reset" name="Submit2" value="重置" />
            </td>
        </tr>
        </table>
    </form>
</div>
<?php echo $this->fetch('footer.html'); ?>
